Skip to content

chore: Remove XModuleMixin legacy attributes from xblocks-contrib#128

Open
farhan wants to merge 2 commits intomainfrom
farhan/remove-legacy-xmodule-mixin-attributes
Open

chore: Remove XModuleMixin legacy attributes from xblocks-contrib#128
farhan wants to merge 2 commits intomainfrom
farhan/remove-legacy-xmodule-mixin-attributes

Conversation

@farhan
Copy link
Contributor

@farhan farhan commented Dec 26, 2025

chore: Remove XModuleMixin legacy attributes from word cloud

Copy link
Member

@kdmccormick kdmccormick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice approach.

Rather than going through .scope_ids, can you use the usage_key and context_key helper attributes defined here? https://github.com/openedx/XBlock/blob/v5.3.0/xblock/core.py#L422-L446 .

The .scope_ids field is technically correct to use, but it's honestly just verbose and hard for developers to understand. The usage_key and context_key were added a couple years ago specifically to make it nicer for developers. My bad for not clarifying that earlier.

I've updated the XModuleMixin and CourseOverview classes to follow the same pattern: openedx/openedx-platform#37845. Do you mind reviewing that PR?

@farhan farhan changed the title chore: Remove XModuleMixin legacy attributes from word cloud chore: Remove XModuleMixin legacy attributes from xblocks-contrib Jan 21, 2026
@farhan farhan force-pushed the farhan/remove-legacy-xmodule-mixin-attributes branch from 22b71fc to 9a0ff81 Compare February 11, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants